﻿using System;
using System.Web;
using Microsoft.SharePoint.Publishing;

namespace Eneta.Portal.NewsAndBlogs.Pages
{
    public class BlogEntryLayoutBase : PublishingLayoutPage
    {
        protected override void OnPreRender(EventArgs e)
        {
            base.OnPreRender(e);

            var title = HttpContext.Current.Items["PageTitle"] as string;
            if(!string.IsNullOrEmpty(title))
            {
                Page.Title = title;
            }
        }
    }
}
